const pkg = require('./package')

module.exports = {
  mode: 'universal',

  server: {
    port: 3000, // default: 3000
    host: '0.0.0.0'
    // host: '0.0.0.0' // default: localhost,
  },

  /*
   ** Headers of the page
   */
  head: {
    title: 'Waterproof Drone Pioneer - Swellpro',
    meta: [
      { charset: 'utf-8' },
      {
        name: 'viewport',
        content:
          'width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=yes'
      },
      {
        name: 'keywords',
        content: 'waterproof drone, Swellpro'
      },
      {
        hid: 'description',
        name: 'description',
        content:
          'Swellpro makes the best waterproof drone with 4K camera gimbal that follows you, Splash Drone 3, Mariner 2, Agile Series, land & float on the water.'
      }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
      {
        rel: 'stylesheet',
        href: '//at.alicdn.com/t/font_637106_9lzeyqafj0d.css'
      }
    ]
  },

  /*
   ** Customize the progress-bar color
   */
  loading: { color: '#f26444' },

  /*
   ** Global CSS
   */
  css: [
    '@/assets/css/main.css',
    '@/assets/css/icon.css',
    '@/assets/stylus/main.styl'
  ],

  /*
   ** Plugins to load before mounting the App
   */
  plugins: [
    { src: '~/plugins/http.js', ssr: false },
    { src: '~/plugins/fastclick.js', ssr: false },
    { src: '~/plugins/util.js', ssr: false },
    { src: '~/plugins/fullpage', ssr: false }
  ],

  env: {
    BASE_URL: process.env.BASE_URL
  },

  /*
   ** Nuxt.js modules
   */
  modules: ['nuxt-device-detect', 'nuxt-fullpage.js'],

  /*
   ** Build configuration
   */
  build: {
    /*
     ** You can extend webpack config here
     */
    extend(config, ctx) {},

    vendor: ['~/plugins/http.js', '~/plugins/fastclick.js', '~/plugins/util.js']
  }
};
